/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

/**
 *
 * @author A0077454
 */
@Entity
public class CustomerFinanceHistory implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long CFHistoryId;
    @ManyToOne(cascade = {CascadeType.PERSIST}) 
    private CustomerFinance customerFinance;
    @OneToOne(cascade = {CascadeType.PERSIST}) 
    private Transaction transaction;
    @OneToOne(cascade = {CascadeType.PERSIST})
    private SystemUser updatedUser;
    private Double deposit;
    private Double credit;

    
    
   
    
}
